<?php
/**
 * Created by PhpStorm.
 * User: yzapple
 * Date: 2018/1/10
 * Time: 下午5:12
 */
namespace app\common\validate;

use think\Validate;

class Patientcase extends Validate
{

    protected $rule =   [
        'case_num'  => 'require|unique:patient_case',
        'check_result'   => 'require',
        'electronic_report' => 'require',
        'check_time' => 'require',

    ];

    protected $message  =   [
        'case_num.require' => '检查编号不能为空',
        'case_num.unique'   => '检查编号不能重复',
        'check_result.require'   => '检查结果不能为空',
        'electronic_report.require'        => '检查报告不能为空',
        'check_time.require'        => '检查时间'

    ];

}